# Project:   CJLib


OBJECTS	=	o.tbox o.message o.choices o.os o.file \
		o.wimpc o.flex o.alloc o.tabs o.kbd \
		o.fonts o.draw o.string o.debug

LIBS	=	C:o.Stubs	\
		OSLib:o.OSLib32

INCLUDE	=	C:,OSLib:

TARGET		=	CJLib

ASMFLAGS	=	$(ASMEXTRA) -Stamp -NoCache -CloseExec \
			-Quit -throwback
CCFLAGS		=	$(CCEXTRA) -fahi -depend !Depend -throwback \
			-memaccess -L22-S22-L41 -I$(INCLUDE)
CPPFLAGS	=	$(CPPEXTRA) -depend !Depend -throwback \
			-I$(INCLUDE)
LINKFLAGS	=	$(LINKEXTRA)
SQUEEZEFLAGS	=	$(SQUEEZEEXTRA)

ASM		=	objasm $(ASMFLAGS)
CC		=	cc -c $(CCFLAGS)
CPP		=	c++ -c $(CPPFLAGS)
LINK		=	Link -aif $(LINKFLAGS)
# SQUEEZE	=	Squeeze $(SQUEEZEFLAGS)


# VPATH = <FormText$Dir>


# Default rule to get around possible "no macros" restriction
all: $(TARGET)

.SUFFIXES:	.o .s .c

$(TARGET):	$(OBJECTS) $(LIBS)
	LibFile -c -o $(TARGET) $(OBJECTS)
        @echo === $(TARGET) made successfully ===

.s.o:
	$(ASM) -from $< -to $@

.c.o:
	$(CC) -o $@ $<

.c++.o:
	$(CPP) -o $@ $<


# Dynamic dependencies:

